package com.cos.openapi.services;

import com.cos.openapi.common.ResponseResult;
import com.cos.openapi.common.ResultTable;
import com.cos.openapi.entity.Role;

import java.util.List;

/**
 * @author: COS
 * @time: 2021/11/24 14:25
 * @description:
 */
public interface RoleServices {
    ResultTable getRolePageWithName(Integer page, Integer limit, String name);

    ResponseResult updateStatus(Integer id, Integer status);

    List<Integer> getRoleMenu(Integer roleId);

    ResponseResult assignMenu(Integer roleId, Integer[] menuIds);

    ResponseResult updateRole(Role r);

    ResponseResult add(Role r);

    List<Role> getAllRole();
}
